import { StyleSheet, View } from 'react-native';


export default {
  isJiess: true,
  name: "BaseCard",
  setup({ title, style, render }) {
    const styles = StyleSheet.create({
      cardStyle: { marginTop: 6, ...style },
    });
    const param = {};
    // ================================================
    this.add(
      this.render({ is: View, style: styles.cardStyle },
        (() => {
          if (typeof render === 'function') {
            return render.call(this, param)
          }
        })()
      ),
    )
  }
}
